package com.walnut.lom_system.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.walnut.lom_system.domain.entity.EmployInfo;
import com.walnut.lom_system.domain.entity.UserInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author chenhetao
* @description 针对表【user_info(记录每个用户的用户信息)】的数据库操作Mapper
* @createDate 2022-03-08 18:07:10
* @Entity com.walnut.lom_system.domain.entity.UserInfo
*/
@Mapper
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    /**
     * 通过条件查询
     * @param page
     * @param userInfo
     * @param orderName
     * @param asc
     * @return
     */
    Page<UserInfo> queryConditionList(Page page,@Param("query")  UserInfo userInfo, @Param("order") String orderName,@Param("asc") Boolean asc);

    /**
     * 批量插入
     * @param userInfos
     * @return
     */
    int insertBatch(@Param("userInfos")List<UserInfo> userInfos);

}




